#
# Be sure to run `pod lib lint DGGUIKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'DGGUIKit'
  s.version          = '1.0.3'
  s.summary          = '拆包'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/wumingpeng/DGGUIKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '伍明鹏' => '505490956@qq.com' }
  s.source           = { :git => 'https://gitee.com/wumingpeng/DGGUIKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'
  
  # 工程pch文件
  s.prefix_header_file = 'DGGUIKit/Classes/PCH/DGGUIKitPrefixHeader.pch'
  
  s.static_framework = true

  s.source_files = 'DGGUIKit/Classes/**/*.{h,m,pch,c}'
  
  s.resource_bundles = {
     'DGGUIKit' => ['DGGUIKit/Assets/*.*', 'DGGUIKit/Assets/Emoticon/*.*','DGGUIKit/Classes/**/*.xib']
  }
  
  s.subspec 'Base' do |bs|
    bs.source_files  = ['DGGUIKit/Classes/BaseView/*.*',
                        'DGGUIKit/Classes/BaseViewController/*.*',
                        'DGGUIKit/Classes/CustomButtom/*.*',
                        'DGGUIKit/Classes/GifRefreshHeader/*.*',
                        'DGGUIKit/Classes/PCH/*.*',
                        'DGGUIKit/Classes/TableBgView/*.*',
                        'DGGUIKit/Classes/TipTool/*.*',
                        'DGGUIKit/Classes/UIViewCategory/*.*',
                        ]
    bs.resource_bundles = {
       'DGGUIKit' => ['DGGUIKit/Assets/*.*', 'DGGUIKit/Classes/TableBgView/*.xib']
    }
  end
  
  s.subspec 'EmoticonView' do |em|
    em.source_files  = 'DGGUIKit/Classes/EmoticonView/*.{h,m}'
    em.resources = 'DGGUIKit/Assets/Emoticon/*.*'
  end
  
  s.subspec 'BaseWebView' do |bw|
    bw.source_files  = 'DGGUIKit/Classes/BaseWebView/*.{h,m}'
    bw.resources = 'DGGUIKit/Classes/BaseWebView/*.xib'
    bw.dependency 'DGGWebBridge'
    bw.dependency 'HBDNavigationBar', '1.6.6'
  end
  
  s.subspec 'MyPop' do |mp|
    mp.source_files  = 'DGGUIKit/Classes/MyPop/*.*'
    mp.dependency 'pop'
  end
  
  s.subspec 'Router' do |rt|
    rt.source_files  = 'DGGUIKit/Classes/Router/*.*'
    rt.dependency 'JLRoutes'
  end

  # s.public_header_files = 'Pod/Classes/**/*.h'
  #s.frameworks = 'UIKit'
  s.dependency 'ReactiveObjC', '3.1.1'
  s.dependency 'Masonry'
  s.dependency 'MJRefresh'
#  s.dependency 'SDWebImage', '5.0.6'
  s.dependency 'MBProgressHUD'
  s.dependency 'MJExtension'
  s.dependency 'DGGCommonSDK'
  

end
